﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAM.Framework.WebServer;
using SAM.Framework.Owin.NET40;
using System.IO;
using System.Reflection;

namespace SAM.Framework.WebServerTest
{
    class Program
    {
        static void Main(string[] args)
        { 


            string dll = "SAM.Framework.WebServerTest.WebApi.NET40.dll";
            var config = new WebServerConfig(9991);
            config.Assemblies.Add(dll);

            IWebServer webServer = new WebServerForOwin();
            webServer.Start(config);

            Console.WriteLine("start ok.....");
            Console.ReadKey();
            webServer.Dispose();
        }
    }
}
